﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Model;
namespace DAL
{
    public class TCServer
    {
        public static  string sqltext = "";
        public static object add(TC tc)
        {
            sqltext = "INSERT INTO TC(TCNAME)values ('" + tc.TCNAME + "')";
            return SQLHELPER.ExecuteNonQuery(sqltext);
        }
        public  static DataSet selectAll()
        {
            sqltext = "SELECT * FROM TC";
            return SQLHELPER.ExecuteDataSet(sqltext);
        }
    }
}
